<template>
	<view class="conter">
		<view  style="display: flex;align-items: center;padding: 20rpx;">
	<view class="title">
		接收日期
	</view>	<uni-datetime-picker
						v-model="datetimerange"
						type="datetimerange"
						rangeSeparator="至"
					/>
		</view>
					<div class="fouter">
	<div class="serchresert" @click="reset">
		重置
	</div>					
<div class="serchquery" @click="submit">
	查询
</div>
		</div>
		</u--form>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				range:'',
				datetimerange: [],
			}
		
		},
		methods: {
			// 提交
						submit() {
							uni.switchTab({
								url:`/pages/Receiving/Receiving`
							})	
							uni.setStorageSync('params', JSON.stringify(this.datetimerange));
						},
						// 重置
						reset() {
						this.datetimerange=[]
							uni.switchTab({
								url:`/pages/Receiving/Receiving`
							})	
								uni.setStorageSync('params', JSON.stringify(this.datetimerange));
		}},
	}
</script>

<style scoped>
.fouter{
	width: 100%;
	display: flex;
	position: absolute;
    bottom: 0rpx;	
	gap: 20rpx;
	justify-content: center;
	margin-bottom: 40rpx;
	}
.serchquery{
	width: 490rpx;
	height: 90rpx;
	background: #3db020;
	border-radius: 10rpx;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 34rpx;
	font-family: PingFang SC, PingFang SC-Regular;
	font-weight: Regular;
	text-align: center;
	color: #ffffff;

}
.serchresert{
	width: 200rpx;
	height: 90rpx;
	border: 2rpx solid #b3b3b3;
	border-radius: 10rpx;
	display: flex;
    justify-content: center;
	align-items: center;
	font-size: 30rpx;
	font-family: PingFang SC, PingFang SC-Regular;
	font-weight: Regular;
	text-align: left;
	color: #999999;
}
.conter{
	background: white;
}
.title{
	font-size: 30rpx;
	font-family: PingFang SC, PingFang SC-Semibold;
	font-weight: Semibold;
	text-align: left;
	color: #333333;
	margin-right: 20rpx;
}
</style>
